<?php
/**
 * 会员后台控制器
 * 
 * @version $Id: Exchange.php 289 2012-05-02 08:40:09Z linsir123 $
 */
class controllerExchange extends UserController 
{
	/**
	 * @var 模型
	 */
	public $mExchange;
	
	/**
	 * 构造函数
	 */
	public function __construct()
	{
		parent::__construct();
		
		///
		$this->mExchange = M::exchange();
	}
	
	/**
	 * 提款明细
	 */
	public function actionList()
	{
		if (Request::isAjax() && Request::isPost()) {
			if ($count = $this->mExchange->getListCount()) {
				$page = $this->pagination($show, $count, 'exchange/list');
				$list = $this->mExchange->getList(($page-1)*$show, $show);
			}
			
			///
			View::display('_exchange_div');
			View::assign('list', $list);
			App::end();
		}
		
		///
		View::display('exchange');
		View::assign('curMenu', 'exchange');
	}
}
